package cn.itcast.service;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CargoProvider {
    public static void main(String[] args) throws Exception {
                /*加载配置文件 启动容器*/
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("classpath*:spring/applicationContext-*.xml");

        classPathXmlApplicationContext.start();
        /*等待控制台回车  如果不回车  就一直卡在这里*/
        System.in.read();

    }
}
